#include <QApplication>
#include "com/global.h"
#include "com/log.h"
#include "srvcfg_dlg.h"
#include "rplycenter_dlg.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
//#ifdef QT_NO_DEBUG
//        qInstallMessageHandler(outputMessage);////在release模式下添加将必要信息保存到日志文件中
//#endif
    readInitSettings();
    changeSkin();
    g_rplyCenterDlg = rplyCenter_Dlg::instance();
    g_rplyCenterDlg->hide();
    g_sysCfgDlg = srvCfg_Dlg::instance();
    g_sysCfgDlg->hide();
    if(g_srvPara.cvrIP == QString("127.0.0.1") || g_srvPara.cvrIP.isEmpty()){
        g_sysCfgDlg->show();
    }else{
        g_rplyCenterDlg->show();
    }
    return a.exec();
}
